package com.whale.kernel.model.tree;

public class LevelLimiter {

	private final static int MAX_LEVEL = 3;

	private int level;

	public LevelLimiter() {
		level = 0;
	}

	public void increase() {
		level++;
	}

	public void decrease() {
		level--;
	}

	public boolean canNext() {
		if (level >= MAX_LEVEL) {
			return false;
		}
		return true;
	}

}
